﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Roslyn.Compilers.CSharp;

namespace RoslynHelper
{
    public static class LiteralExpression
    {
        public static LiteralExpressionSyntax GetStringLiteral(string value)
        {
            return Syntax.LiteralExpression(SyntaxKind.StringLiteralExpression, Syntax.Literal(string.Format("\"{0}\"", value), value));
        }

        public static LiteralExpressionSyntax Null()
        {
            return Syntax.LiteralExpression(SyntaxKind.NullLiteralExpression, Syntax.Token(SyntaxKind.NullKeyword));
        }
    }
}
